home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / AppsToGo / DTS.Lib / Extra Headers / TSMTE.h < prev   
Encoding:
C/C++ Source or Header  |  1994-09-22  |  4.6 KB  |  149 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TSMTE.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __TSMTE__
  13. #define __TSMTE__
  14.  
  15. #ifndef __TEXTEDIT__
  16. #include <TextEdit.h>
  17. /*    #include <Quickdraw.h>                                        */
  18. /*        #include <Types.h>                                        */
  19. /*            #include <ConditionalMacros.h>                        */
  20. /*            #include <MixedMode.h>                                */
  21. /*                #include <Traps.h>                                */
  22. /*        #include <QuickdrawText.h>                                */
  23. /*            #include <IntlResources.h>                            */
  24. #endif
  25.  
  26. #ifndef __DIALOGS__
  27. #include <Dialogs.h>
  28. /*    #include <Windows.h>                                        */
  29. /*        #include <Events.h>                                        */
  30. /*            #include <OSUtils.h>                                */
  31. /*        #include <Controls.h>                                    */
  32. /*            #include <Menus.h>                                    */
  33. #endif
  34.  
  35. #ifndef __TEXTSERVICES__
  36. #include <TextServices.h>
  37. /*    #include <AppleEvents.h>                                    */
  38. /*        #include <Memory.h>                                        */
  39. /*        #include <EPPC.h>                                        */
  40. /*            #include <PPCToolBox.h>                                */
  41. /*                #include <AppleTalk.h>                            */
  42. /*            #include <Processes.h>                                */
  43. /*                #include <Files.h>                                */
  44. /*                    #include <SegLoad.h>                        */
  45. /*        #include <Notification.h>                                */
  46. /*    #include <Errors.h>                                            */
  47. /*    #include <Components.h>                                        */
  48. #endif
  49.  
  50. enum  {
  51.     kTSMTESignature                = 'tmTE',
  52.     kTSMTEInterfaceType            = kTSMTESignature,
  53.     kTSMTEDialog                = 'tmDI'
  54. };
  55.  
  56. enum  {
  57.     gestaltTSMTEAttr            = kTSMTESignature,
  58.     gestaltTSMTEPresent            = 0,
  59.     gestaltTSMTE                = gestaltTSMTEPresent,
  60.     gestaltTSMTEVersion            = 'tmTV',
  61.     gestaltTSMTE1                = 0x100
  62. };
  63.  
  64. enum  {
  65.     kTSMTEAutoScroll            = 1
  66. };
  67.  
  68. typedef pascal void (*TSMTEPreUpdateProcPtr)(TEHandle textH, long refCon);
  69.  
  70. enum {
  71.     uppTSMTEPreUpdateProcInfo = kPascalStackBased
  72.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(TEHandle)))
  73.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  74. };
  75.  
  76. #if USESROUTINEDESCRIPTORS
  77. typedef UniversalProcPtr TSMTEPreUpdateUPP;
  78.  
  79. #define CallTSMTEPreUpdateProc(userRoutine, textH, refCon)        \
  80.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppTSMTEPreUpdateProcInfo, (textH), (refCon))
  81. #define NewTSMTEPreUpdateProc(userRoutine)        \
  82.         (TSMTEPreUpdateUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppTSMTEPreUpdateProcInfo, GetCurrentISA())
  83. #else
  84. typedef TSMTEPreUpdateProcPtr TSMTEPreUpdateUPP;
  85.  
  86. #define CallTSMTEPreUpdateProc(userRoutine, textH, refCon)        \
  87.         (*(userRoutine))((textH), (refCon))
  88. #define NewTSMTEPreUpdateProc(userRoutine)        \
  89.         (TSMTEPreUpdateUPP)(userRoutine)
  90. #endif
  91.  
  92. typedef pascal void (*TSMTEPostUpdateProcPtr)(TEHandle textH, long fixLen, long inputAreaStart, long inputAreaEnd, long pinStart, long pinEnd, long refCon);
  93.  
  94. enum {
  95.     uppTSMTEPostUpdateProcInfo = kPascalStackBased
  96.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(TEHandle)))
  97.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  98.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long)))
  99.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(long)))
  100.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(long)))
  101.          | STACK_ROUTINE_PARAMETER(6, SIZE_CODE(sizeof(long)))
  102.          | STACK_ROUTINE_PARAMETER(7, SIZE_CODE(sizeof(long)))
  103. };
  104.  
  105. #if USESROUTINEDESCRIPTORS
  106. typedef UniversalProcPtr TSMTEPostUpdateUPP;
  107.  
  108. #define CallTSMTEPostUpdateProc(userRoutine, textH, fixLen, inputAreaStart, inputAreaEnd, pinStart, pinEnd, refCon)        \
  109.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppTSMTEPostUpdateProcInfo, (textH), (fixLen), (inputAreaStart), (inputAreaEnd), (pinStart), (pinEnd), (refCon))
  110. #define NewTSMTEPostUpdateProc(userRoutine)        \
  111.         (TSMTEPostUpdateUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppTSMTEPostUpdateProcInfo, GetCurrentISA())
  112. #else
  113. typedef TSMTEPostUpdateProcPtr TSMTEPostUpdateUPP;
  114.  
  115. #define CallTSMTEPostUpdateProc(userRoutine, textH, fixLen, inputAreaStart, inputAreaEnd, pinStart, pinEnd, refCon)        \
  116.         (*(userRoutine))((textH), (fixLen), (inputAreaStart), (inputAreaEnd), (pinStart), (pinEnd), (refCon))
  117. #define NewTSMTEPostUpdateProc(userRoutine)        \
  118.         (TSMTEPostUpdateUPP)(userRoutine)
  119. #endif
  120.  
  121. #if defined(powerc) || defined (__powerc)
  122. #pragma options align=mac68k
  123. #endif
  124. struct TSMTERec {
  125.     TEHandle                    textH;
  126.     TSMTEPreUpdateUPP            preUpdateProc;
  127.     TSMTEPostUpdateUPP            postUpdateProc;
  128.     long                        updateFlag;
  129.     long                        refCon;
  130. };
  131. #if defined(powerc) || defined(__powerc)
  132. #pragma options align=reset
  133. #endif
  134.  
  135. typedef struct TSMTERec TSMTERec, *TSMTERecPtr, **TSMTERecHandle;
  136.  
  137. #if defined(powerc) || defined (__powerc)
  138. #pragma options align=mac68k
  139. #endif
  140. struct TSMDialogRecord {
  141.     DialogRecord                fDialog;
  142.     TSMDocumentID                fDocID;
  143.     TSMTERecHandle                fTSMTERecH;
  144.     long                        fTSMTERsvd[3];
  145. };
  146. #if defined(powerc) || defined(__hop    AFPServer*ct TSMTERec {
  147.     TEHandle                    textH;
  148.     TSMTEPreUpdateUPP            preUpdateProc;
  149.     TSMTEPostUpdateUPP            postUpda